import {  Table, Button } from 'antd';
import "./index.scss"

const UserManager = () => {
  const columns = [
    {
      title: 'ID',
      dataIndex: 'id',
      key: 'id',
    },
    {
      title: '姓名',
      dataIndex: 'name',
      key: 'name',
    },
    {
      title: '电话',
      dataIndex: 'phone',
      key: 'phone',
    },
    {
      title: '邮箱',
      dataIndex: 'email',
      key: 'email',
    },
    {
      title: '注册时间',
      dataIndex: 'loginTime',
      key: 'loginTime',
    },
    {
      title: "操作",
      key: "",
      render: (_, __, index) => {
        return (
          <div className='actionBar'>
            <Button type="primary">修改信息</Button>
            <Button type="primary">修改权限</Button>
          </div>
        )
      }
    }
  ];
  const data = [
    {
      id: '1',
      name: "高级管理员",
      phone: '19519800423',
      email: "1542852668@qq.com",
      loginTime: "2023-11-10"
    },
  ];
  return (
    <>
      <Table columns={columns} dataSource={data} />
    </>
  )
}

export default UserManager;